<template>
    <div>


            <div class="container">
                <div class="nav">
                    <div>
                        <a href="javascript:;" @click="$router.back()"></a>
                    </div>
                    <div>
                        <span>视频</span>
                    </div>
                    <div @click="subnav = !subnav">
                        <i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
                        <div class="subnav" v-show="subnav">
                            <router-link to="/" tag="a">首页</router-link>
                            <router-link to="/news" tag="a">资讯</router-link>
                            <router-link to="/video" tag="a">视频</router-link>
                            <router-link to="/seek" tag="a">找车</router-link>
                            <router-link to="/plaint" tag="a">汽车投诉</router-link>
                        </div>
                    </div>
                </div>
                <div class="tabs">
                    <div class="uls">
                        <div><span>视频首页</span></div>
                        <div><span>新车试驾</span></div>
                        <div><span>聊车软妹子</span></div>
                        <div><span>车车Movie秀</span></div>
                        <div><span>车坛网事</span></div>
                    </div>
                    <div class="box">
            
                    </div>
                </div>
                
                <router-link to="/vPlayer" tag="div" class="banner">
                    <div>
                        <div class="img">
                        <img src="http://img.315che.com/img4/upload/2022-10-12/f628a50c-255e-48d8-9bf3-c9789b91da37.jpg" alt="">
                    </div>
                    <div class="txt">
                        <i></i>
                        <span>爽快 智能 试驾广汽本田全新型格e:HEV</span>
                    </div>
                    </div>
                    <ul>
                        <li></li>
                        <li></li>
                        <li></li>
                        <li></li>
            
                    </ul>

                </router-link>

                



                <div class="title">
                    <span>新车试驾</span>
                    <i></i>
                </div>
                <div class="banner">
                    <div class="img">
                        <img src="http://img.315che.com/img4/upload/2022-10-12/f628a50c-255e-48d8-9bf3-c9789b91da37.jpg" alt="">
                    </div>
                    <div class="txt">
                        <i></i>
                        <span>爽快 智能 试驾广汽本田全新型格e:HEV</span>
                    </div>
                    <a href="javascript:;" class="prev"></a>
                    <a href="javascript:;" class="next"></a>
                </div>
                <div class="title">
                    <span>聊车软妹子</span>
                    <i></i>
                </div>
                <div class="banner">
                    <div class="img">
                        <img src="../assets/img/video.jpg" alt="">
                    </div>
                    <div class="txt">
                        <i></i>
                        <span>爽快 智能 试驾广汽本田全新型格e:HEV</span>
                    </div>
                    <a href="javascript:;" class="prev"></a>
                    <a href="javascript:;" class="next"></a>
                </div>
                <div class="title">
                    <span>车车Movie秀</span>
                    <i></i>
                </div>
                <div class="banner">
                    <div class="img">
                        <img src="http://img.315che.com/img4/upload/2022-10-12/f628a50c-255e-48d8-9bf3-c9789b91da37.jpg" alt="">
                    </div>
                    <div class="txt">
                        <i></i>
                        <span>爽快 智能 试驾广汽本田全新型格e:HEV</span>
                    </div>
                    <a href="javascript:;" class="prev"></a>
                    <a href="javascript:;" class="next"></a>
                </div>
                <div class="title">
                    <span>车坛网事</span>
                    <i></i>
                </div>
                <div class="banner">
                    <div class="img">
                        <img src="../assets/img/video.jpg" alt="">
                    </div>
                    <div class="txt">
                        <i></i>
                        <span>爽快 智能 试驾广汽本田全新型格e:HEV</span>
                    </div>
                    <a href="javascript:;" class="prev"></a>
                    <a href="javascript:;" class="next"></a>
                </div>
                <div class="foot">
                    <div class="search_foot">
                        <div></div>
                    </div>
                </div>

            </div>
    </div>
</template>

<script>
    export default {
    created() {
        this.$emit("car-show", true);
    },
    data(){
        return {
            subnav: false
        }
    }
    }
</script>

<style lang="scss" scoped>
body {
    background-color: #eee;
}
.nav {
    height: 44px;
    background-color: #35447b;
    display: flex;
    align-items: center;

    &>div {
        &:nth-child(1) {
            text-align: left;
            flex: 1;
        }

        &:nth-child(2) {
            text-align: center;
            flex: 1;
        }

          &:nth-child(3) {
              text-align: right;
              flex: 1;
              padding-right: 10px;
             position: relative;
              i {
                  display: block;
                  float: right;
    
              }
                           .subnav {
                               width: 100px;
                               height: 170px;
                               padding: 6px;
                               border-radius: 4px;
                               position: absolute;
                               top: 35px;
                               left: 12px;
                               background: rgba(0, 0, 0, 0.8);
                            z-index: 9;
                               a {
                                   width: 100px;
                                   height: 18px;
                                   padding: 8px 0;
                                   text-align: center;
                                   background-image: none;
                                   color: #fff;
                               }
            
                               &::before {
                                   content: "";
                                   display: block;
                                   position: absolute;
                                   top: -17px;
                                   left: 80px;
                                   border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
                                   border-width: 9px;
                                   border-style: dashed dashed solid dashed;
                               }
                           }
          }
    }

    div {
        a {
            display: block;
            width: 40px;
            height: 40px;
            background-image: url("../assets/img/icons1.png");
            background-position: -82px -32px;
            background-size: 400px auto;
        }

        span {
            color: #fff;
            font-size: 18px;
        }

        i {
            width: 25px;
            height: 22px;
            background-image: url("../assets/img/icons1.png");
            background-position: -175px -42px;
            background-size: 400px auto;
        }
    }
}

.tabs {
    height: 40px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    background-color: #fff;
    overflow: hidden;

    .uls {
        display: flex;
        height: 50px;
        overflow-x: scroll;

        div {
            padding: 0 12px;
            color: #999;
            line-height: 40px;
            font-size: 15px;

            span {
                white-space: nowrap;
                padding: 8px 0;
            }
        }

        &>div {
            &:first-of-type {
                span {
                    border-bottom: 2px solid #4c61b0;
                }
            }
        }
    }

    .box {
        width: 20px;
        height: 100%;
        background-color: #fff;
        box-shadow: -6px 0 10px rgb(0 0 0 / 20%);
        flex: none;
    }
}

.banner {
    position: relative;

    .img {
        width: 100%;
    }

    .txt {
        width: 100%;
        height: 30px;
        background-color: rgba(0, 0, 0, .6);
        line-height: 30px;
        color: #fff;
        text-indent: 10px;
        font-size: 12px;
        position: absolute;
        bottom: 0px;

        i {
            width: 22px;
            height: 22px;
            display: block;
            background-image: url("../assets/img/vi-play6.png");
            background-size: 22px auto;
            float: left;
            margin: 4px 0 4px 12px;
        }

        span {
            display: block;
            float: left;
        }
    }

    ul {
        display: flex;
        position: absolute;
        bottom: 10px;
        right: 0;

        li {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, .5);
            margin-right: 5px;

            &:first-of-type {
                background-color: rgba(255, 255, 255, 1);
            }
        }
    }

    a {
        width: 35px;
        height: 60px;
        background-image: url("../assets/img/btn.png");
        position: absolute;
        top: 50%;
        margin-top: -30px;
        background-size: 100px auto;
        background-repeat: no-repeat;

        &:first-of-type {
            left: 5px;
            background-position: 0 center;
        }

        &:last-of-type {
            right: 5px;
            background-position: 100% center;
        }
    }
}

.title {
    height: 22px;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    background-color: #fff;

    span {
        padding-left: 15px;
        border-left: 3px solid #f4772d;
        color: #333;
        font-size: 16px;
        font-weight: 600;
    }

    i {
        display: block;
        width: 9px;
        height: 16px;
        background-image: url("../assets/img/vi-more1.png");
        background-size: 9px auto;
        margin-right: 15px;
    }
}

.foot {
    background-color: #fff;
    padding: 10px;
    margin-top: 15px;

    .search_foot {
        margin: auto;
    }
}
</style>